package yxy.game.pm2.bean.pubsub;

import yxy.apple.util.PubSub.ISubscription;
import yxy.apple.util.PubSub.Publisher;

/** 武将背包发布 */
public class HeroPackPublisher extends Publisher {
	static private HeroPackPublisher instance;

	public static HeroPackPublisher getInstance() {
		if (instance == null) {
			instance = new HeroPackPublisher();
		}
		return instance;
	}

	private HeroPackPublisher() {

	}

	public void publish(String playerCode) {
		this.publish(new HeroPackSubscription(playerCode));
	}

	public static class HeroPackSubscription implements ISubscription {
		private String playerCode;

		public HeroPackSubscription(String playerCode) {
			this.playerCode = playerCode;
		}

		public String getPlayerCode() {
			return playerCode;
		}

	}
}
